package sxe.core.image;

import snobject.*;
import step.FunctionWrapper;
import step.EvaluationFailure;

public class loadSNImage extends FunctionWrapper {
	public snObject Call(snObjectArgList argv) throws EvaluationFailure {
		snString filename = argv.popString();
	
		try {
			return ImageProcessing.loadSNImage(filename.getString());
		} catch (InterruptedException i) {
			System.err.println(i.getMessage());
			return new snNil();
		}
	}
}